import React, { useState } from 'react'
import Islogin from '../utils/hoc_login'
import Bookshelfson from './bookshelfson'
function Bookshelf() {
  let [sum,setSum] = useState(0)
  return (
    <div>Bookshelf
      <h4>{sum}</h4>
      <button onClick={()=>setSum(sum++)}>点击</button>
      <Bookshelfson sum={sum}></Bookshelfson>
    </div>
  )
}

export default Islogin(Bookshelf)